package mop.util.event;

import mop.model.ModelInterface;

/**
 * Event that get's fired if a property of a PropertyChangeSupport class is changed
 * 
 * @author 	MOP Team 7
 */
public class PropertyChangeEvent {
	
	/**
	 * The model that fires the event
	 */
	private final ModelInterface model;
	
	/**
	 * Constructor
	 * @param model	The model that fires the event
	 * @post model is set
	 * 	|getModel() == model
	 */
	public PropertyChangeEvent(ModelInterface model)
	{
		this.model = model;
	}
	
	/**
	 * Model inspector
	 * @return	model
	 */
	public ModelInterface getModel()
	{
		return model;
	}
}
